function cucumber(value) {
    let newValue = ['', '', ''];
    let fr = 1000;
    let num = 3;
    while (value / fr >= 1) {
      fr *= 10;
      num += 1;
    }
    if (num <= 4) { // 千
      newValue[1] = '千';
      newValue[0] = parseInt(value / 1000) + '';
    } else if (num <= 8) { // 万
      const text = parseInt(num - 4) / 3 > 1 ? '千万' : '万';
      const fm = '万' === text ? 10000 : 10000000;
      newValue[1] = text;
      newValue[0] = (value / fm) + '';
      newValue[0] = Math.round(newValue[0]*10)/10
      console.log(newValue[0])
    } else if (num <= 16) {// 亿
      let text = (num - 8) / 3 > 1 ? '千亿' : '亿';
      text = (num - 8) / 4 > 1 ? '万亿' : text;
      text = (num - 8) / 7 > 1 ? '千万亿' : text;
      let fm = 1;
      if ('亿' === text) {
        fm = 100000000;
      } else if ('千亿' === text) {
        fm = 100000000000;
      } else if ('万亿' === text) {
        fm = 1000000000000;
      } else if ('千万亿' === text) {
        fm = 1000000000000000;
      }
      newValue[1] = text;
      newValue[0] = parseInt(value / fm) + '';
    }
    if (value < 10000) {
      newValue[1] = '';
      newValue[0] = value + '';
    }
    return newValue.join('')
} 
export default cucumber